function ObjHandle = plotAttenuation(main, filterID, axes, color, W) 

filterToPlot = ['filter' num2str(filterID)];

sys = main.(filterToPlot).transferFunction;

[MAG, PHASE,W] = bode(sys,logspace(log10(W(1)),log10(W(end)),10000));

ObjHandle = semilogx(axes, W, 20*log10(1./(MAG(:,:))), 'Color', color, 'LineWidth',2);


[XLim, YLim] = getScale(main);

set(axes, 'YLim', YLim);
set(axes, 'XLim', XLim);

end